package oop.test2;

public class Application {
    public static void main(String[] args) {
        Person p1 = new Person();
        Student s1 = new Student();
        System.out.println(p1 instanceof Object);
        System.out.println(p1 instanceof Person);
        System.out.println(p1 instanceof Student);
        System.out.println(p1 instanceof Teacher);
        System.out.println("===================");
        System.out.println(s1 instanceof Object);
        System.out.println(s1 instanceof Person);
        System.out.println(s1 instanceof Student);
//        System.out.println(s1 instanceof Teacher);
    }
}
